package com.lemon.system.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户表 数据传输对象
 *
 * @author 李猛
 * @since 2024-02-11
 */
@Getter
@Setter
public class UserDTO extends Page<UserDTO> {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long tenantId;

    private Long deptId;

    private String username;

    private String password;

    private String name;

    private String phone;

    private String email;

    private LocalDate birthday;

    private String avatar;

    private Long provinceId;

    private Long cityId;

    private Long countyId;

    private String address;

    private String lastLoginIp;

    private LocalDateTime lastLoginTime;

    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private Boolean status;

    @TableLogic
    private Boolean deleted;


}
